package com.whu.helpluojia.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 *
 * @TableName supply
 */
@TableName(value ="supply")
@Data
public class Supply implements Serializable {
    /**
     * 物品供需表主键
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 买家/卖家的用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     *
     *
     *
     * 卖家/买家的用户id
     */
    @TableField(value = "receiver_id")
    private Long receiverId;

    /**
     * 二手物品种类
     */
    @TableField(value = "type")
    private String type;

    /**
     * 发布供需帖的时间
     */
    @TableField(value = "time")
    private Date time;

    /**
     * 物品供需帖的描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 定位的经度
     */
    @TableField(value = "lat")
    private Double lat;

    /**
     * 定位的纬度
     */
    @TableField(value = "lon")
    private Double lon;

    /**
     * 照片
     */
    @TableField(value = "image")
    private String image;

    /**
     * 状态：0代表未发布，1代表已发布未找到，2代表已找到并下架
     */
    @TableField(value = "status")
    private int status;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
